<!doctype html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport"
        content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
</head>
<body>
<div id="app">
  <env/>
</div>

<script src="./js/vue.js"></script>

<script>
  const cpn1 = Vue.extend({
    template:`
      <div>
        <h1>Hello Component 1</h1>
      </div>
    `
  });

  const cpn2 = Vue.extend({
    template:`
      <div>
        <cpn1></cpn1>
        <h2>Hello Component 2</h2>
      </div>
    `,
    components:{
      'cpn1':cpn1
    }
  });

  const app = new Vue({
    el:'#app',
    data:{
      message:'Hello World'
    },
    components: {
      'env':cpn2
    }
  });
</script>
</body>
</html>